package com.xiaomei.manager.service;

import java.util.List;

import com.xiaomei.manager.model.DiscountAddress;
import com.xiaomei.manager.web.dto.req.AddressQueryDto;
import com.xiaomei.manager.web.page.Page;

public interface IDiscountAddressService {
	public Integer selectMaxID();
	 /**
    * 
    * 根据请求参数map查询优惠地址信息
	 * @param paramMap 请求参数map
	 * @return 地址数据集
    */
   List<DiscountAddress> getDiscountAddressList(AddressQueryDto dto, Page<DiscountAddress> page);
   
   /**
	 * 创建新的优惠地址
	 * @param experience
	 * @return
	 */
	public boolean createDiscountAddress(DiscountAddress address);
	/**
	 * 活动优惠地址
	 * @param activtiy
	 * @return
	 */
	boolean updateDiscountAddress(DiscountAddress activtiy);
	
	/**
	 * 根据id查看优惠地址
	 * @param id
	 * @return
	 */
	public DiscountAddress findOne(Integer id);
	
	public DiscountAddress selectDiscountAddressById(Integer id);
	
	/**
	 * 删除某个优惠地址
	 * @param id
	 * @return
	 */
	public boolean deleteDiscountAddress(Integer id);
}
